package cc.common.types.constants;


import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;

public class Constants {

    public final static String SPLIT = ",";
    public final static String UNDER_LINE = "_";

    @AllArgsConstructor
    @NoArgsConstructor
    @Getter
    public enum ResponseCodeSimple {
        SUCCESS("0000", "操作成功"),
        ERROR("0001", "操作失败"),
        UN_ERROR("0002", "未知失败"),
        ILLEGAL_PARAMETER("0003", "非法参数"),
        APP_ERROR("0004", "内部防攻击错误"),
        TOKEN_ERROR("Unauthorized-401-0003", "权限拦截"),
        ORDER_PRODUCT_ERR("OE001", "所购商品已下线，请重新选择下单商品"),
        ;

        private String code;
        private String info;

    }

    @AllArgsConstructor
    @NoArgsConstructor
    @Getter
    public enum ResponseErrorSimple {
        DEFAULT_ERROR("操作失败，请重试"),
        DEFAULT_SUCCESS("操作成功，请重试"),
        CLIENT_A0311("授权已过期！"),
        USERNAME_NOT_FOUND("用户不存在！"),
        LOGIN_AUTHENTICATE_ERROR("登录校验失败！"),
        ;

        private String info;

    }


}
